package com.huiminpay.merchant.api.service;

import com.huiminpay.common.cache.domain.BusinessException;
import com.huiminpay.common.cache.domain.PageVO;
import com.huiminpay.merchant.api.dto.MerchantDTO;
import com.huiminpay.merchant.api.dto.StaffDTO;
import com.huiminpay.merchant.api.dto.StoreDTO;

/**
 * 商户模块service接口
 */
public interface MerchantServiceApi {

    //根据id查询商户
    public MerchantDTO findMerchantById(Long id);

    //商户注册
    public MerchantDTO registerMerchant(MerchantDTO merchantDTO) throws BusinessException;

    //资质申请
    public void applyMerchant(Long merchantId, MerchantDTO merchantDTO) throws BusinessException;

    //根据手机号获取商户信息
    public void findMerchantByPhone(String mobile);

    //新增门店
    public StoreDTO addStore(StoreDTO storeDTO);

    //新增员工
    public StaffDTO addStaff(StaffDTO staffDTO);

    //为门店绑定员工
    public void bindStaffToStore(Long storeId,Long staffId)throws BusinessException;

}
